package com.vegetable.modules.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.modules.entity.inbound.AgentDeliveryDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 入库-代办交货商品表
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AgentDeliveryDetailVO对象", description="AgentDeliveryDetailVO对象")
public class AgentDeliveryDetailVO extends AgentDeliveryDetail {

    @ApiModelProperty(value = "单号")
    private String docNo;


    @ApiModelProperty(value = "代办人名称")
    private String agentName;

    @ApiModelProperty(value = "订单日期")
    private String orderTime;
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderMoney;
    @ApiModelProperty(value = "付款折扣")
    private BigDecimal discount = BigDecimal.ZERO;

    @ApiModelProperty(value = "代办人id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long agentId;

    private List<AgentDeliveryDetailVO> children = new ArrayList<>();

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "溢价")
    private BigDecimal premium;
}
